import QtQuick 2.0

Item{

    property alias color: rectangle.color
    property alias source: image.source
    property alias radius: rectangle.radius
    property alias border: rectangle.border

    BorderImage {
        anchors.fill: rectangle
        anchors {
            leftMargin: -6
            topMargin: -6
            rightMargin: -8
            bottomMargin: -8
        }
        border {
            left: 10
            top: 10
            right: 10
            bottom: 10
        }
        source: "qrc:/images/yinying.png"
        smooth: true
    }
    Rectangle {
        id: rectangle
        anchors.fill: parent
        Image{
            id:image
            anchors.fill: rectangle
            fillMode: Image.PreserveAspectFit
            smooth: true
        }
    }
}
